<template>
<!--<Menu></Menu>-->
  <div class="common-layout">
    <el-container>
      <el-header>学生管理系统</el-header>
      <el-container>
        <el-aside width="200px"  element-loading-background="#545C64">
          <el-menu
              active-text-color="#ffd04b"
              background-color="#545c64"
              class="el-menu-vertical-demo"
              default-active="2"
              text-color="#fff"
              @open="handleOpen"
              @close="handleClose"
              router
          >
            <el-menu-item index="/index">
              <el-icon><Setting /></el-icon>
              <span>首页</span>
            </el-menu-item>
            <el-sub-menu index="1">
              <template #title>
                <el-icon><location /></el-icon>
                <span>用户管理</span>
              </template>
                <el-menu-item index="/userList">用户信息</el-menu-item>
                <el-menu-item index="/userAdd">用户添加</el-menu-item>
            </el-sub-menu>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view>
          </router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
import Menu from "./components/Menu.vue";
import {Document, Location, Setting} from "@element-plus/icons-vue";
export default {
  name:'App',
  components:{Location, Setting, Document, Menu},
  data(){
    return{
    }
  },
  methods:{
    handleOpen(){},
    handleClose(){}
  }
}
</script>
<style>

</style>